//
//  ViewController.m
//  Test
//
//  Created by 喂！ on 2018/5/29.
//  Copyright © 2018年 喂！. All rights reserved.
//

#import "ViewController.h"
#import "CustomProgress.h"
#import "ArrayTool.h"
#import "Person.h"
#import "DataBase.h"
#import "MoLogin.h"
#import <Masonry/Masonry.h>


@interface ViewController ()


/**
 *  数据源
 */
@property(nonatomic,strong) NSMutableArray *dataArray;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];

    
    
    UIButton *button = [UIButton new];
    [self.view addSubview:button];
    [button addTarget:self action:@selector(registerAction:) forControlEvents:UIControlEventTouchUpInside];
    [button setTitle:@"提交" forState:UIControlStateNormal];
    [button setBackgroundColor:[UIColor groupTableViewBackgroundColor]];
    [button mas_makeConstraints:^(MASConstraintMaker *make) {

        make.center.mas_equalTo(self.view);

    }];
    


}

-(void)registerAction:(UIButton *)button
{
    NSMutableDictionary *loginDic = [[NSMutableDictionary alloc] init];
    [loginDic setValue:@"DWW2" forKey:@"UserName"];
    [loginDic setValue:@"123456" forKey:@"UserPassword"];
    MoLogin *mologin = [[MoLogin alloc] init];
    mologin.baseHttpServiceBlock = ^(NSMutableDictionary *response) {
        
        
    };
    [mologin requestToService:loginDic];
}

@end
